package com.graduation.roombooking.vo;


import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * @Author:ZhaoXinYi
 * @FileName:
 * @Date:Created in  2022/04/02 23:41
 * @Version:
 * @Description:公共返回对象枚举
 */
@Getter
@ToString
@AllArgsConstructor
public enum  RespBeanEnum {
    //    通用
    SUCCESS(200,"SUCCESS"),
    ERROR(500,"服务端异常"),

    //成功
    UPDATE_SUCCESS(2002001,"修改成功！"),
    //    登录
    LOGIN_ERROR(500210,"用户名或密码错误！"),
    LOGIN_ERROR_NOT_EXIST(500211,"不存在该用户"),
    PASSWORD_ERROR(500212,"密码不正确"),
    MOBILE_ERROR(500213,"手机号码格式不正确"),
    VERIFY_USER_ERROR(500214,"用户审核未通过"),
    STATUS_USER_ERROR(500215,"该用户已注销"),
    VERIFY_COMPANY_ERROR(500216,"所在组织未通过审核"),
    STATUS_COMPANY_ERROR(500217,"所在组织已注销"),
    NOT_JOIN_COMPANY(500218,"未加入任何组织"),
    //    异常
    BIN_ERROR(500218,"参数校验异常"),
    EMAIL_ERROR(500219,"验证码发送失败"),
    NO_OPERATION_PERMISSION(500200,"没有操作权限"),
    ILLEGAL_OPERATION(500201,"非法操作"),
    ILLEGAL_OPERATION_STATUS(5002002,"非法操作，不可更改为此状态"),
    BATCH_UPDATE_ERROR(5002003,"批量修改失败，启动事务回滚"),

    //注册
    REGISTER_ERROR(5003110,"注册失败"),
    DUPLICATEKEY_ERROR(5003111,"该手机号已被注册"),
    IDENTIFYNUMBER_ERROR(5003112,"身份证号格式错误"),
    COMPANY_NOTFOUND(5003113,"部门不存在"),
    COMPANY_REPEAT(5003114,"部门已存在"),

    //图片
    EMPTY_IMG_DATA(5004001,"图片为空"),
    UPLOAD_IMG_ERROR(5004002,"图片上传失败"),


    //基本操作
    UPDATE_ERROR(5005001,"修改失败"),
    INSERT_ERROR(5005002,"添加失败"),
    DELETE_ERROR(5005003,"删除失败")

    ;


    private final Integer status;
    private final String msg;
}
